package com.cnap.multiclouldmgmt.model.alarm;


/**
 * 规则表达式
 *
 * @author xc
 **/
public class RuleExp {
    /**
     * 持续时间（单位默认分钟）
     */
    private int duration;
    /**
     * 类型（平均值，最大值，最小值）
     */

    private String type;
    /**
     * 符号（> >= = < <=）
     */

    private String symbol;

    private int threshold;

    /**
     * get
     *
     * @return Threshold
     */
    public int getThreshold() {
        return threshold;
    }

    /**
     * set
     *
     * @param threshold threshold
     */
    public void setThreshold(int threshold) {
        this.threshold = threshold;
    }

    /**
     * get
     *
     * @return Duration
     */
    public int getDuration() {
        return duration;
    }

    /**
     * set
     *
     * @param duration duration
     */
    public void setDuration(int duration) {
        this.duration = duration;
    }

    /**
     * get
     *
     * @return Type
     */
    public String getType() {
        return type;
    }

    /**
     * set
     *
     * @param type type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * get
     *
     * @return Symbol
     */
    public String getSymbol() {
        return symbol;
    }

    /**
     * set
     *
     * @param symbol symbol
     */
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }



}
